@echo off
cd bin
FOR /R "C:\Program Files\Java\" %%i IN (*java.exe) DO set JAVA="%%i"
%JAVA% Application.Main
cd ..